export default {
  state: {
    userInfo:
      (localStorage.getItem("loginData") &&
        JSON.parse(localStorage.getItem("loginData"))) ||
      {},
  },
  mutations: {
    setUserinfo(state, userinfo) {
      state.userinfo = userinfo;
    },
  },
};
